package com.gjm.demo.controller;

import org.springframework.jmx.export.annotation.ManagedResource;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller//与前端交互的类必须使用@Controller
@ResponseBody
//@Service
public class ControllerHtmlTest {

    @RequestMapping("test")
    public String print() {
        return "@Controller与@Service的区别";
    }
}


